<template>
  <div>
    <div class="a1">
      <div class="a11">
        <div>
          <h2>Hello</h2>
          <h2>宠友们!</h2>
        </div>
        <img src="../tu/fdj.png" />
      </div>
      <div id="a1">
        <div class="a12">
          <div>
            <img src="../tu/wan.png" />
            <img src="../tu/new.png" />
            <p>新品卡通狗食盆</p>
            <h2>￥76.9</h2>
          </div>
          <div>
            <img src="../tu/wan.png" />
            <img src="../tu/new.png" />
            <p>新品卡通狗食盆</p>
            <h2>￥76.9</h2>
          </div>
          <div>
            <img src="../tu/wan.png" />
            <img src="../tu/new.png" />
            <p>新品卡通狗食盆</p>
            <h2>￥76.9</h2>
          </div>
          <div>
            <img src="../tu/wan.png" />
            <img src="../tu/new.png" />
            <p>新品卡通狗食盆</p>
            <h2>￥76.9</h2>
          </div>
        </div>
      </div>

      <div class="a2">
        <div>
          <img src="../tu/dianji (6).png" @click="$router.push('shangpin')" />
          <p>狗粮</p>
        </div>
        <div>
          <img src="../tu/dianji (7).png" @click="$router.push('shangpin')" />
          <p>猫粮</p>
        </div>
        <div>
          <img src="../tu/dianji (5).png" @click="$router.push('shangpin')" />
          <p>宠物装饰</p>
        </div>
        <div>
          <img src="../tu/dianji (4).png" @click="$router.push('shangpin')" />
          <p>玩具</p>
        </div>
        <div>
          <img src="../tu/dianji (3).png" @click="$router.push('shangpin')" />
          <p>笼子</p>
        </div>
        <div>
          <img src="../tu/dianji (2).png" @click="$router.push('shangpin')" />
          <p>鱼食</p>
        </div>
        <div>
          <img src="../tu/dianji (1).png" @click="$router.push('shangpin')" />
          <p>日常用品</p>
        </div>
        <div>
          <img src="../tu/dianji (8).png" @click="$router.push('shangpin')" />
          <p>全部</p>
        </div>
      </div>
      <div class="a3">
        <span>今日活动</span>
        <div class="a31">
          <img src="../tu/wan.png" />
          <img src="../tu/wan.png" />
        </div>
      </div>
    </div>
    <my-footer />
  </div>
</template>

<script>
import { Button } from "vant";
import { ref } from "vue";
import MyFooter from "@/components/MyFooter.vue";
export default {
  components: {
    MyFooter,
    [Button.name]: Button,
  },
  setup() {
    const active = ref(0);
    return { active };
  },
};
</script>

<style scoped>
.abc {
  width: 100%;
  overflow: hidden;
}
.a1 {
  width: 100vw;
  height: 35vh;
  background-image: url("../tu/bj.jpg");
  background-color: #d8f1ef;
}
.a11 {
  display: flex;
  justify-content: space-between;
  padding: 25px 10px;
}
.a11 img {
  width: 25px;
  height: 25px;
}
.a11 h2 {
  color: white;
  margin-bottom: 5px;
  font-size: 18px;
}
#a1 {
  overflow: scroll;
}
#a1::-webkit-scrollbar {
  width: 0;
}

.a12 {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-around;
  flex-shrink: 0;
  width: 356px;
  display: flex;
  justify-content: space-between;
}
.a12 div {
  background-color: white;
  /* width: 300px; */
  /* height:25vh; */
  padding: 8px;
  box-sizing: border-box;
  border-radius: 10px;
  margin-left: 20px;
  /* width: 100px; */
  /* height:100px; */
  border: 1px solid #fae8ee;
  margin-left: 12px;
  flex: 0 0 130px;
}
.a12 div img:nth-child(1) {
  width: 100%;
}
.a12 div img:nth-child(2) {
  width: 25%;
  margin-top: -5px;
}
.a12 div h2 {
  color: red;
  font-size: 16px;
}
.a2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  padding: 5px;
  margin-bottom: 40px;
}
.a2 div {
  width: 22vw;
  height: 30px;
  margin-top: 20px;
  margin-bottom: 28px;
  /* display: flex;
        flex-direction:column; */
}
.a2 div img {
  width: 70%;
  display: block;
  margin: 0 auto;
}
.a2 div p {
  text-align: center;
}

.a3 span {
  font-size: 16px;
}
.a31 {
  display: flex;
  justify-content: space-between;
}
.a31 img {
  width: 45vw;
  height: 20vh;
}
.c1 {
  position: absolute;
  bottom: 0;
}
</style>
